<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Follow extends Model
{
    protected $guarded = [];


    public function companyInfo()
    {//返回公司信息
        return $this->belongsTo('App\CompanyInfo', 'company_id', 'uid');
    }

    public function position()
    {
        return $this->belongsTo('App\Position', 'position_id');
    }
    public function user()
    {
        return $this->belongsTo('App\User', 'by_id');
    }
    public function userinfo()
    {
        return $this->belongsTo('App\UserPersonnel', 'by_id','user_id');
    }
    public function basics()
    {
        return $this->belongsTo('App\Basic', 'by_id','uid');
    }
}
